package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.OrderItem;
import cn.dhnep.demo.mapper.OrderItemMapper;
import cn.dhnep.demo.pojo.frontvo.OrderItemVo;
import cn.dhnep.demo.service.OrderItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-09-06
 */
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {

    @Override
    public List<OrderItemVo> getYesterdayOrderItem(String name) {
        return baseMapper.getYesterdayOrderWeightAndMoneyAndProductType(name);
    }
}
